package com.bblocks.common.anti_reptile.rule;

import com.bblocks.common.anti_reptile.config.bean.RuleComm;
import com.bblocks.common.anti_reptile.module.MatchResult;
import lombok.NonNull;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>Project: bb-anti-reptile - ResultStrategy</p>
 * <p>描述：结果策略,可以自行定制其他策略-例如返回验证码输入界面</p>
 *
 * @Author Zhao [125043150@qq.com]
 * @Date 2024/3/27 9:11
 * @Version 1.0
 * @since 8
 */
public interface ResultStrategy {

    /**
     * 处理结果
     * @param matchResult 匹配结果
     * @param request
     * @param response
     */
    void process(@NonNull MatchResult matchResult, HttpServletRequest request, HttpServletResponse response) throws IOException;
}
